import 'dart:collection';
import 'package:fixnum/fixnum.dart' as $fixnum;
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import '../../../m_chatroom.dart';
import '../../interface/chat_room_leaf_interface.dart';
import '../tools/room_personal_data_page.dart';

class ContributionListPageModel extends ChatRoomChangeNotifier {
  // final SimpleChannelUserSlot item;

  ContributionListPageModel();

  @override
  observeMessage(int messageId, data) {}

  @override
  onRootProxyModelCreated() {
    _requestData();
  }

  // MicContributionRankData? data;

  _requestData() async {
    // data = (await RtcApi.instance.getMicContributionRank(roomModel.channel?.channelId??$fixnum.Int64(0),item.user.id))
    //     .data;
    // data = MicContributionRankData.create();
    // data!.micUser=(SimpleChannelUser.create());
    // for(int i=0;i<100;i++){
    //   data!.rankItem.add(SimpleChannelUser.create());
    // }
    notifyListeners();
  }

  // onItemPressed(BuildContext context, SimpleChannelUser item) {
  //   RoomPersonalDataWidget.show(context,roomModel.channel, item);
  // }
}
